package com.example.config.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author yuisama
 * @date 2023/02/01 16:43
 **/
@Slf4j
@Component
public class ReadFromConfig3 {
    @Autowired
    public ReadFromConfig3(XiaojingConfig config){

            log.info("读取到的 menmen.name ="+ config.getName());
            log.info("读取到的 menmen.age ="+ config.getAge());
        }
}

